package builder;

public class Director {

    //模拟 mysql -> hive
    public Product buildMysqlJson(Builder builder){
        builder.buildReader("mysql");
        builder.buildWriter("hive");
        builder.buildSetting("setting");
        return builder.getJson();
    }

    //模拟 oracle -> hive
    public Product buildOracleJson(Builder builder){
        builder.buildReader("oracle");
        builder.buildWriter("hive");
        builder.buildSetting("setting");
        return builder.getJson();
    }
}
